package cn.wolfcode.edu.util;

import lombok.*;

/**
 * Created by abb on 2018-07-08.
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class JsonResult {
    private boolean success = true;
    private String msg;
    public JsonResult(String msg){
        this.success = false;
        this.msg = msg;
    }
    public JsonResult remark(String msg){
        JsonResult result = new JsonResult();
        result.setSuccess(false);
        result.setMsg(msg);
        return result;
    }
}

